<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Illuminate\Database\Eloquent\Model as Eloquent;

/**
 * Class UserProperty
 * 
 * @property int $user_id
 * @property int $hall_id
 * @property int $age
 * @property string $avatar_url
 * @property string $nickname
 * @property string $realname
 * @property int $sex
 * @property \Carbon\Carbon $birth
 * @property int $safe_level
 * @property string $qq
 * @property string $wechat
 * @property string $skype
 * @property string $idcard
 * @property string $invit_code
 * @property int $register_source
 * @property int $channel_id
 * @property bool $promotion
 * @property \Carbon\Carbon $nocheck_time
 * @property \Carbon\Carbon $last_login_time
 * @property string $last_login_ip
 * @property string $remark
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @package App\Models
 */
class UserProperty extends Eloquent
{
	protected $table = 'user_property';
	protected $primaryKey = 'user_id';
	public $incrementing = false;

	protected $casts = [
		'user_id' => 'int',
		'hall_id' => 'int',
		'age' => 'int',
		'sex' => 'int',
		'safe_level' => 'int',
		'register_source' => 'int',
		'channel_id' => 'int',
		'promotion' => 'bool'
	];

	protected $dates = [
		'birth',
		'nocheck_time',
		'last_login_time'
	];

	protected $fillable = [
		'hall_id',
		'age',
		'avatar_url',
		'nickname',
		'realname',
		'sex',
		'birth',
		'safe_level',
		'qq',
		'wechat',
		'skype',
		'idcard',
		'invit_code',
		'register_source',
		'channel_id',
		'promotion',
		'nocheck_time',
		'last_login_time',
		'last_login_ip',
		'remark'
	];
}
